package com.putao.album.db.tables;

import com.putao.album.ahibernate.annotation.Column;
import com.putao.album.ahibernate.annotation.Id;
import com.putao.album.ahibernate.annotation.Table;
import com.putao.album.base.BaseItem;

import java.util.Random;

/**
 * Created by jidongdong on 15/5/14.
 */
@Table(name = "pt_album_in_message")
public class InMessage extends BaseItem {
    @Id
    private Long id;
    /**
     * 头像
     */
    @Column(name = "header_photo")
    private String header_photo;

    /**
     * 宝贝照片
     */
    @Column(name = "baby_picture")
    private String baby_picture;

    /**
     * 消息内容
     */
    @Column(name = "message_content")
    private String message_content;

    /**
     * 照片ID
     */
    @Column(name = "photo_id")
    private String photo_id;

    /**
     * 相册Id
     */
    @Column(name = "album_id")
    private String album_id;

    /**
     * baby id
     */
    @Column(name = "baby_id")
    private Long baby_id;

    /**
     * 创建时间
     */
    @Column(name = "createtime")
    private Long createtime;


    @Column(name = "isRead")
    private Integer isread;


    /**
     * 消息类型/是消息列表还是首页弹窗
     */
    @Column(name = "type")
    private Integer type;


    public Long getBaby_id() {
        return baby_id;
    }

    public void setBaby_id(Long baby_id) {
        this.baby_id = baby_id;
    }


    public Integer getIsread() {
        return isread;
    }

    public void setIsread(Integer isread) {
        this.isread = isread;
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }


    public InMessage() {
        setId(Math.abs(new Random().nextLong()));
    }

    public String getPhoto_id() {
        return photo_id;
    }

    public void setPhoto_id(String photo_id) {
        this.photo_id = photo_id;
    }

    public String getAlbum_id() {
        return album_id;
    }

    public void setAlbum_id(String album_id) {
        this.album_id = album_id;
    }


    public String getHeader_photo() {
        return header_photo;
    }

    public void setHeader_photo(String header_photo) {
        this.header_photo = header_photo;
    }

    public String getMessage_content() {
        return message_content;
    }

    public void setMessage_content(String message_content) {
        this.message_content = message_content;
    }

    public Long getCreatetime() {
        return createtime;
    }

    public void setCreatetime(Long createtime) {
        this.createtime = createtime;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getBaby_picture() {
        return baby_picture;
    }

    public void setBaby_picture(String baby_picture) {
        this.baby_picture = baby_picture;
    }


}
